package csc.fresher.finalgroupfour.form;

import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotEmpty;

public class UserForm {
	@NotEmpty(message="Login Id is not null")
	private String loginId;
	
	@NotEmpty(message="Password is not null")
	@Size(min=8, max=20, message="Password length's min is 8 and max is 20")
	private String password;
	
	@NotEmpty
	String userState;
	
	@NotEmpty(message="No customer available this time!")
	String customerCardNumberId;
	
	public UserForm() {}
	
	public String getLoginId() {
		return loginId;
	}

	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUserState() {
		return userState;
	}

	public void setUserState(String userState) {
		this.userState = userState;
	}

	public String getCustomerCardNumberId() {
		return customerCardNumberId;
	}

	public void setCustomerCardNumberId(String customerCardNumberId) {
		this.customerCardNumberId = customerCardNumberId;
	}
	
}
